home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
CalendarDate.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
10KB
|
374 lines
/*
* This file was generated by the SOM Compiler.
* FileName: CalendarDate.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_TCalendarDate_xh
#define SOM_TCalendarDate_xh
class TCalendarDate;
#define TCalendarDate_MajorVersion 1
#define TCalendarDate_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef TCalendarDate_API
#define TCalendarDate_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define TCalendarDateCClassData TCalendarDateClassData
#define TCalendarDateNewClass(major,minor) somNewVersionedClassReference(TCalendarDate,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TCalendarDateMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the TCalendarDate class object, and the methods it introduces. */
SOMEXTERN struct TCalendarDateClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken _get_fCalendarRef;
somMToken _set_fCalendarRef;
somMToken ValidateCalendarDate;
} SOMDLINK TCalendarDateClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TCalendarDate_Class_Source) && !defined(SOM_Module_calendardate_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TCalendarDateClassData
#endif
#endif
/*
* -- Typedefs for TCalendarDate Method Procedures
*/
SOMEXTERN {
typedef UInt32 (* SOMLINK somTD_TCalendarDate__get_fCalendarRef)(TCalendarDate *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TCalendarDate__set_fCalendarRef)(TCalendarDate *somSelf, Environment *ev,
UInt32 fCalendarRef);
typedef OptionBits (* SOMLINK somTD_TCalendarDate_ValidateCalendarDate)(TCalendarDate *somSelf, Environment *ev,
OptionBits fieldSelector);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_TCalendarDate_somInit)(TCalendarDate *somSelf);
typedef void (* SOMLINK somTD_TCalendarDate_somUninit)(TCalendarDate *somSelf);
typedef SOMObject* (* SOMLINK somTD_TCalendarDate_somDuplicateReference)(TCalendarDate *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarDate_somCompareReference)(TCalendarDate *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_TCalendarDate_somRelease)(TCalendarDate *somSelf);
typedef void (* SOMLINK somTD_TCalendarDate_somFree)(TCalendarDate *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarDate_somCanDelete)(TCalendarDate *somSelf);
typedef SOMClass* (* SOMLINK somTD_TCalendarDate_somGetClass)(TCalendarDate *somSelf);
typedef corbastring (* SOMLINK somTD_TCalendarDate_somGetClassName)(TCalendarDate *somSelf);
typedef long (* SOMLINK somTD_TCalendarDate_somGetSize)(TCalendarDate *somSelf);
typedef boolean (* SOMLINK somTD_TCalendarDate_somIsA)(TCalendarDate *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TCalendarDate_somRespondsTo)(TCalendarDate *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_TCalendarDate_somIsInstanceOf)(TCalendarDate *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TCalendarDate_somDispatch)(TCalendarDate *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TCalendarDate_somClassDispatch)(TCalendarDate *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TCalendarDate_somCastObj)(TCalendarDate *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_TCalendarDate_somResetObj)(TCalendarDate *somSelf);
typedef SOMObject* (* SOMLINK somTD_TCalendarDate_somPrintSelf)(TCalendarDate *somSelf);
typedef void (* SOMLINK somTD_TCalendarDate_somDumpSelf)(TCalendarDate *somSelf,
long level);
typedef void (* SOMLINK somTD_TCalendarDate_somDumpSelfInt)(TCalendarDate *somSelf,
long level);
}
#endif /* TCalendarDate_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for TCalendarDate
*/
class TCalendarDate : public SOMObject
{
public:
// TCalendarDate::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for TCalendarDate, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(TCalendarDate);
}
// TCalendarDate::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: _get_fCalendarRef */
UInt32 _get_fCalendarRef(Environment *ev)
{
return SOM_ResolveD(this,TCalendarDate,TCalendarDate,_get_fCalendarRef)
(this,ev);
}
/* method: _set_fCalendarRef */
void _set_fCalendarRef(Environment *ev,
UInt32 fCalendarRef)
{
SOM_ResolveD(this,TCalendarDate,TCalendarDate,_set_fCalendarRef)
(this,ev,fCalendarRef);
}
/* method: ValidateCalendarDate */
OptionBits ValidateCalendarDate(Environment *ev,
OptionBits fieldSelector)
{
return SOM_ResolveD(this,TCalendarDate,TCalendarDate,ValidateCalendarDate)
(this,ev,fieldSelector);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,TCalendarDate,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,TCalendarDate,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,TCalendarDate,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean TCalendarDate_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TCalendarDate,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean TCalendarDate_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TCalendarDate,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,TCalendarDate,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,TCalendarDate,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,TCalendarDate,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* TCalendarDate */
#endif /* SOM_TCalendarDate_xh */